//
//  WHCategoryScrollView.h
//  GroupFourFM
//
//  Created by dllo on 15/12/23.
//  Copyright © 2015年 GroupFour. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol WHCategoryScrollViewDelegate <NSObject>

- (void)titleButtonAction:(UIButton *)button;
- (void)endDraggingAction:(NSInteger)tag;

@end

@interface WHCategoryScrollView : UIView<UIScrollViewDelegate>

@property (nonatomic, retain) UIScrollView *titleScrollView;//头部scrollView
@property (nonatomic, retain) UIScrollView *bgScrollView;//背景scrollView

@property (nonatomic, assign) id<WHCategoryScrollViewDelegate>WHCategorydelegate ;//代理
@property (nonatomic, retain) UILabel * vernier;//下划线
@property (nonatomic, assign) CGFloat currenX;//当前坐标
@property (nonatomic, assign) BOOL isRight;//监听手势方向,默认为YES
@property (nonatomic, retain) NSMutableArray *btnArray;//按钮数组
@property (nonatomic, assign) NSInteger currentIndex;
//@property (nonatomic, retain) UIButton *rightButton;

//设置头部scrollView内容
- (void)setTitleContent:(NSArray *)array;
//设置背景scrollView内容
- (void)setBgScrollViewContents:(NSArray *)array;


@end
